#!/bin/sh

find -name \*.v -print0 | xargs -0 sed -i.sedbak '/timescale/d'
find -name \*.V -print0 | xargs -0 sed -i.sedbak '/timescale/d'

find -name \*.v -print0 | xargs -0 sed -i.sedbak '1i\`timescale 1ns / 10ps'
find -name \*.V -print0 | xargs -0 sed -i.sedbak '1i\`timescale 1ns / 10ps'
rm -Rf ./*.sedbak